<cfset BASE = CreateObject("component", "cfc.base") / >
<cfset baseQueries = CreateObject("component", "#session.rootDir#.cfc.queries") />
<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlHeader(
    "js/Step3-SpawnCreation.js", <!---JS links--->
    "", <!---CSS links--->
    "Step 3: Spawn Creation", <!---Page Title--->
    "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->

<cfif Session.bolAuth EQ True and (Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>

    <cfset EmployeeInfo = baseQueries.funcGetEmpInfo(URL.StepID) />
    <cfif EmployeeInfo.recordcount GT 0>
        <h1 class="title">Step 3: Create Employee Records</h1>
        <div class="entry">
        
            <cfset EmployeeNameDisplay = EmployeeInfo.First /> <!--- Display Only TODO: redo this horrible code from scott--->
            <cfif trim(EmployeeInfo.Middle) NEQ ''>
                <cfset EmployeeNameDisplay &= ' #EmployeeInfo.Middle#' />
            </cfif>
            <cfif trim(EmployeeInfo.PreferredName) NEQ ''>
                <cfset EmployeeNameDisplay &= ' (#EmployeeInfo.PreferredName#)' />
            </cfif>
            <cfset EmployeeNameDisplay &= ' #EmployeeInfo.Last#'>
            
            <p>The creation of the employee records has been initiated for 
            <strong>#EmployeeNameDisplay#</strong>. 
            Please wait while E-PAR generates the following system records:
            </p>
            <input type="hidden" id="StepID" value="#URL.StepID#" />

            <table>
                <tr>
                    <td width='30'>&nbsp;</td>
                    <td>
                        <table>
                            <tr>
                                <td valign='top'>Network Account:</td>
                                <td valign='top' width='75%'>
                                    <span id="AD" class="error"></span>&nbsp;<img id="AD" src="images/blank.jpg" />
                                </td>
                            </tr>
                            <tr>
                                <td valign='top'>HR Employee Record:</td>
                                <td valign='top'>  
                                    <span id="HRProd" class="error"></span>&nbsp;<img id="HRProd" src="images/blank.jpg" />     
                                </td>
                            </tr>
                            <tr>
                                <td valign='top' nowrap="nowrap">Rosetta Stone Record:</td>
                                <td valign='top'>
                                    <span id="Rosetta" class="error"></span>&nbsp;<img id="Rosetta" src="images/blank.jpg" />  
                                </td>
                            </tr>
                        </table>                                    
                    </td>
                </tr>
                <tr>
                    <td width='25' colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td width='25'>&nbsp;</td>
                    <td>
                        <span id="Notice" class="error">During this time, 
                            please refrain from refreshing the page.
                        </span>                             
                    </td>
                </tr>
            </table>
            
            
        </div>
        
    
    <cfelse>
        This employee has already been processed in Step 3.   
        To select another user, click 
        <a href="Step3-Orientation1.cfm">
            Here
        </a>
    </cfif>
<cfelse>
    <cfinclude template="denied.cfm">
</cfif>

<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>

<!---

<cfset BASE = CreateObject("component", "cfc.base") / >
<cfset baseQueries = CreateObject("component", "#session.rootDir#.cfc.queries") />

<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlHeader(
	"js/Step3-SpawnCreation.js", <!---JS links--->
    "", <!---CSS links--->
    "Step 3: Spawn Creation", <!---Page Title--->
    "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->

    
<cfif Session.bolAuth EQ True and (Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>	
    
    <!---Query objects--->
    <cfset QUERIES = {} />
    <cfset QUERIES.GetEmpInfo = baseQueries.funcGetEmpInfo(URL.StepID) />

    <!---Query objects--->
    
    <cfif QUERIES.GetEmpInfo.recordcount GT 0>
		<h1 class="title">Step 3: Create Employee Records</h1>
        <div class="entry">
        
            <cfset EmployeeNameDisplay = QUERIES.GetEmpInfo.First /> <!--- Display Only TODO: redo this horrible code from scott--->
            <cfif trim(QUERIES.GetEmpInfo.Middle) NEQ ''>
                <cfset EmployeeNameDisplay &= ' #QUERIES.GetEmpInfo.Middle#' />
            </cfif>
            <cfif trim(QUERIES.GetEmpInfo.PreferredName) NEQ ''>
                <cfset EmployeeNameDisplay &= ' (#QUERIES.GetEmpInfo.PreferredName#)' />
            </cfif>
            <cfset EmployeeNameDisplay &= ' #QUERIES.GetEmpInfo.Last#'>
            
            <p>The creation of the employee records has been initiated for 
            <strong>#EmployeeNameDisplay#</strong>. 
            Please wait while E-PAR generates the following system records:
            </p>
            
            <input type="hidden" id="StepID" value="#URL.StepID#" />
            
            <table>
                <tr>
                    <td width='25'>&nbsp;</td>
                    <td>
                        <table>
                            <tr>
                                <td valign='top'>Network Account:</td>
                                <td valign='top' width='75%'>
                                    <span id="AD" class="error"></span>&nbsp;<img id="AD" src="images/blank.jpg" />
                                </td>
                            </tr>
                            <tr>
                                <td valign='top'>HR Employee Record:</td>
                                <td valign='top'>  
                                    <span id="HRProd" class="error"></span>&nbsp;<img id="HRProd" src="images/blank.jpg" />   	
                                </td>
                            </tr>
                            <tr>
                                <td valign='top' nowrap="nowrap">Rosetta Stone Record:</td>
                                <td valign='top'>
                                    <span id="Rosetta" class="error"></span>&nbsp;<img id="Rosetta" src="images/blank.jpg" />  
                                </td>
                            </tr>
                        </table>	                            	
                    </td>
                </tr>
                <tr>
                    <td width='25' colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td width='25'>&nbsp;</td>
                    <td>
                        <span id="Notice" class="error">During this time, 
                            please refrain from refreshing the page.
                        </span>                            	
                    </td>
                </tr>
            </table>
            
            
        </div>
        
    
    <cfelse>
        This employee has already been processed in Step 3.   
        To select another user, click 
        <a href="Step3-Orientation1.cfm">
            Here
        </a>
    </cfif>

<cfelse>
    <cfinclude template="denied.cfm">
</cfif>


<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>
--->